package com.ideafactory.client.beans;

import java.util.List;

/**
 * Created by LiuShao on 2016/4/27.
 */
public class CatalogGoodsBean{
    private Integer count;//商品库存数量
    private Integer isNew;//是否为新品(1 是新品 2不是)
    private int type;//售卖方式（1单品/2套餐/3组合）
    private Integer isPromotion;//是否促销（1是促销 2不是）
    private String name;//商品名称
    private Double price;//商品价格
    private String goodsId;//商品Id
    private Integer unit;////单位（1包2份3杯）
    private Integer status; //状态(1仓库中 2出售中 3 售罄)
    private Integer goodsSize;//商品分量
    private Double discount;//原价
    private Double packMoney;//打包费
    private Integer goodType;//1实物商品 2虚拟商品
    private String image;//图片id
    private String gdesc;//描述
//  private String imageSrc;//图片链接
     private String windowName;//窗口名称
    private Integer goodsCount;//商品选择数量数量
    public CatalogGoodsBean() {

    }

    public CatalogGoodsBean(Integer goodsCount, Integer count, String name, Double price, String goodsId, Integer unit, Double discount, Double packMoney, Integer isPackCharge, List<String> imageSrc) {
        this.count = count;
        this.goodsCount = goodsCount;
        this.name = name;
        this.price = price;
        this.goodsId = goodsId;
        this.unit = unit;
        this.discount = discount;
        this.packMoney = packMoney;
        this.isPackCharge = isPackCharge;
        this.imageSrc = imageSrc;
    }


    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public String getWindowName() {
        return windowName;
    }

    public void setWindowName(String windowName) {
        this.windowName = windowName;
    }

    private Integer isPackCharge;//打包是否收费 （1收费2不收费）

    public Integer getIsPackCharge() {
        if(isPackCharge==null){
            isPackCharge = 2;
        }
        return isPackCharge;
    }
    public void setIsPackCharge(Integer isPackCharge) {
        this.isPackCharge = isPackCharge;
    }

    private Integer goodsAdded;//被添加的商品的数量,如果超过count数量就不让添加了
    public Integer getGoodsAdded() {
        return goodsAdded;
    }
    public void setGoodsAdded(Integer goodsAdded) {
        this.goodsAdded = goodsAdded;
    }

    private List<String> imageSrc;
    public List<String> getImageSrc() {
        return imageSrc;
    }
    public void setImageSrc(List<String> imageSrc) {
        this.imageSrc = imageSrc;
    }


    public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }

        public Integer getIsNew() {
            return isNew;
        }

        public void setIsNew(Integer isNew) {
            this.isNew = isNew;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public Integer getIsPromotion() {
            return isPromotion;
        }

        public void setIsPromotion(Integer isPromotion) {
            this.isPromotion = isPromotion;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Double getPrice() {
            return price;
        }

        public void setPrice(Double price) {
            this.price = price;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public Integer getUnit() {
            return unit;
        }

        public void setUnit(Integer unit) {
            this.unit = unit;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getGoodsSize() {
            return goodsSize;
        }

        public void setGoodsSize(Integer goodsSize) {
            this.goodsSize = goodsSize;
        }

        public Double getDiscount() {
            return discount;
        }

        public void setDiscount(Double discount) {
            this.discount = discount;
        }

        public Integer getGoodType() {
            return goodType;
        }

        public void setGoodType(Integer goodType) {
            this.goodType = goodType;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getGdesc() {
            return gdesc;
        }

        public void setGdesc(String gdesc) {
            this.gdesc = gdesc;
        }

    public Double getPackMoney() {
        return packMoney;
    }

    public void setPackMoney(Double packMoney) {
        this.packMoney = packMoney;
    }
}
